#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
char str[75000];
int mark;
void Show(int score)
{
	int l = 0;
	int w = 0;
	for (int i = 0; i < mark ; i++) {
		if (str[i] == 'W') {
			w++;
		}
		else if (str[i] == 'L') {
			l++;
		}
		if ((w >= score || l >= score) && abs(l - w) >= 2) {
			cout << w << ":" << l << endl;
			l = 0;
			w = 0;
		}
	}
	cout << w << ":" << l << endl;
}
int main()
{
	char temp;
	while (cin >> temp && temp != 'E') {
		str[mark++] = temp;
	}
	Show(11);
	cout << endl;
	Show(21);
	return 0;
}